/*
 * @Author       : 许警
 * @Date         : 2024-04-24 11:32:20
 * @LastEditors: 许警 11378748333@
 * @LastEditTime: 2025-05-21 10:26:21
 * @FilePath     : /src/views/content/translate/list/data.js
 * @Description  :
 */
import { number } from 'echarts'
import moment from 'moment'

export const columnsArr = [
  {
    title: '提交人姓名',
    dataIndex: 'submitPerson',
    className: 'table',
    align: 'center',
    width: '90px'
  },
  {
    title: '所在部门',
    dataIndex: 'submitDepartment',
    className: 'table',
    align: 'center',
    width: '210px'
  },
  {
    title: '提交时间',
    dataIndex: 'createdAt',
    className: 'table',
    align: 'center',
    width: '230px'
  },
  {
    title: '开票金额',
    dataIndex: 'openerSumPrice',
    className: 'table',
    align: 'center',
    width: '230px'
  },
  {
    title: '所在公司',
    dataIndex: 'counterpartName',
    className: 'table',
    align: 'center'
  },
  {
    title: '状态',
    dataIndex: 'status',
    className: 'table',
    align: 'center',
    slots: {
      customRender: 'status'
    }
  },
  {
    title: '操作',
    dataIndex: 'operation',
    className: 'table',
    align: 'center',
    width: '90px',
    fixed: 'right',
    slots: {
      customRender: 'operation'
    }
  }
]
export const statusColorObj = {
  0: {
    text: '未到账',
    color: 'blue'
  },
  1: {
    text: '审核中',
    color: 'warning'
  },
  2: {
    text: '已到账',
    color: 'success'
  },
  3: {
    text: '已拒绝',
    color: 'error'
  }
}
export const orderStatus = {
  0: '待主管审核',
  1: '主管审核通过',
  2: '主管审核拒绝',
  3: '待财务审核',
  4: '财务审核通过',
  5: '财务审核拒绝'
}
export const dataObj = {
  loading: true,
  list: [],
  time: [],
  id: '',
  visible: false,
  selectData: {},
  organList: [],
  chartTabs: [
    { name: '订单数量', value: 'orderNum', isMoney: false },
    { name: '订单总金额', value: 'orderPriceSum', isMoney: true },
    { name: '护士佣金总金额', value: 'nursePriceSum', isMoney: true }
  ],
  ranges: {
    //时间选择器
    Today: [moment(), moment()],
    'This Month': [moment(), moment().endOf('month')]
  },
  number: null
}

export const rulesObj = {
  source: [
    {
      required: true,
      message: '请输入',
      trigger: 'blur'
    }
  ],
  organName: [
    {
      required: true,
      message: '请输入',
      trigger: 'blur'
    }
  ],
  serviceId: [
    {
      required: true,
      message: '请选择'
    }
  ]
}
